/* 产品详情页样式 */
/* 注意：商品详情页的 container 宽度继承自 header.css */

.product-container {
    display: flex;
    margin: 30px auto;
    max-width: 1100px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.product-image {
    width: 400px;
    margin-right: 50px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.02);
}

.product-info {
    flex: 1;
    padding: 10px 0;
}

.product-name {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
}

.product-description {
    color: #757575;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-category {
    color: #b0b0b0;
    margin-bottom: 15px;
}

.product-price {
    font-size: 28px;
    color: #ff6700;
    font-weight: bold;
    margin: 25px 0;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-price .old-price {
    color: #b0b0b0;
    text-decoration: line-through;
    margin-left: 12px;
    font-weight: normal;
    font-size: 16px;
}

.product-stock {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background: #f1f9f1;
    color: #4caf50;
    margin-bottom: 25px;
    font-size: 14px;
}

.product-stock.out-of-stock {
    color: #f44336;
    background: #fef2f2;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.quantity-control label {
    margin-right: 15px;
    font-size: 16px;
    color: #333;
}

.quantity-input {
    width: 80px;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.quantity-input:focus {
    border-color: #ff6700;
    outline: none;
}

.add-to-cart-btn {
    display: inline-block;
    padding: 15px 60px;
    background-color: #ff6700;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover {
    background-color: #f25807;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 103, 0, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.add-to-cart-btn:disabled {
    background-color: #b0b0b0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.product-features {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.product-features h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.product-features ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #757575;
    line-height: 1.6;
}

/* 商品详情页特定的样式 */

/* 响应式样式 */
@media screen and (max-width: 1226px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .product-container {
        flex-direction: column;
    }
    
    .product-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}
